package com.prs.crm.dao.flow.impl;

import java.util.Collection;
import java.util.List;

import org.hibernate.Criteria;

import com.prs.crm.dao.flow.WorkFlowTypeDao;
import com.prs.crm.dao.impl.BaseDaoImpl;
import com.prs.crm.domain.flow.WorkFlowType;

public class WorkFlowTypeDaoImpl extends BaseDaoImpl<WorkFlowType> implements WorkFlowTypeDao {
	
	public Collection<WorkFlowType> getTypes()
	{
		return this.getHibernateTemplate().loadAll(WorkFlowType.class);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<WorkFlowType> getAllWorkFlowType() {
		Criteria criteria=this.getSession().createCriteria(WorkFlowType.class);
		return criteria.list();
	}
}
